package com.imooc.springcloudstreamtest.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;
import org.springframework.stereotype.Component;

/**
 * @Author: 阿俊哥
 * @Date: 2019/6/15 15:17
 * @Version 1.0
 */

public interface StreamClient {

    String INPUT = "myMessage";

    String OUTPT = "myRecive";

    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    @Output(StreamClient.OUTPT)
    MessageChannel output();


}
